package com.lhkj.ct.meta.modules.patient.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.lhkj.ct.base.enums.PatSourceEnum;
import com.lhkj.ct.meta.modules.patient.model.entity.TblPatSource;

import javax.validation.constraints.NotEmpty;
import java.util.List;
import java.util.Map;

/**
 * <p>
 * 档案来源 服务类
 * </p>
 *
 * @author jobob
 * @since 2023-12-15
 */
public interface PatSourceService extends IService<TblPatSource> {

    List<Map<String, Object>> countBySourceType(@NotEmpty(message = "PatSourceEnum不能为空") PatSourceEnum[] patSources);

    int insertOnDuplicate(TblPatSource patSource);
}
